package com.steel.springsecurity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

@Controller
public class UserController extends MultiActionController {
	private IuserService iuserService;
	
	@Autowired
	public void setIuserService(IuserService iuserService) {
		this.iuserService = iuserService;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/login")
	public ModelAndView login() {
		return new ModelAndView("Login");
	}

	@RequestMapping(method = RequestMethod.GET, value = "/success")
	public ModelAndView success() {
		return new ModelAndView("LoginSuccess");
	}
}
